﻿@model CommerceOne.Widgets.NewestProducts.NewestProductViewModel
<!-- MODULE Home Featured Products -->
<div id="featured-products_block_center">
    <h4>
        Featured products</h4>
    <div class="block_content">
        <ul>
            @if (Model != null)
            {
                foreach (var item in Model.Products)
                {
                <li class="ajax_block_product">
                    <h5>
                        <a class="product_link" href="@item.Url" title="@item.Name">@item.ShortName</a></h5>
                    @if (item.DefaultPicture != null)
                    {
                        <a class="product_image" href="@item.Url" title="@item.Name"><img src="@item.DefaultPicture.Home" alt="@item.Name" /></a>
                    }
                    <div>
                        <span class="price">$@item.ListPrice</span> <a class="add2cart" rel="ajax_id_product_1" href="/Add/@item.ID/1/?returnUrl=@Request.Url.PathAndQuery" title="Add to cart">
                            Add to cart</a>
                    </div>
                </li>
                }
            }
        </ul>
    </div>
</div>
<!-- /MODULE Home Featured Products -->
